import render from "./render.js";
import loadata from "./loadata.js";

function Category() {}

$.extend(Category.prototype, {
    init() {
        var $home_brand_main = $(".home-brand-main");
        var show_others = $(".show-others");


        $(".home-brand > .common-section-header").css({
            "background-image": 'url("")'
        })

        show_others.on("click", render.showOthers.bind(render));

        loadata.popCategoryLoad().then(function(res) {
            var html = render.init(res.data, "home-brand-main");
            $home_brand_main.html(html);
        })
    },
    
});

export default new Category();